#pragma once
#include<vector>
#include "model/CommunicationHeader.h"
#include "model/LogicalHeader.h"
#include "model/LogicalBody.h"
#include "model/Checksum.h"
#include "utils/utils.h"

namespace model {
	class MsgNode {
	public:
		CommunicationHeader communication_header_;
		LogicalHeader logical_header_;
		LogicalBody logical_body_;
		Checksum checksum_;
		MsgNode& setDirection(uint8_t dir) { logical_header_.direction = dir; return *this; }
		MsgNode& setSendTime() { utils::UpdateSendTime(logical_header_.sendTime); return *this; }

	};
}